package com.sparrow.rpc.socket.msg.req;

import com.sparrow.rpc.socket.msg.RpcCodecMsg;
import com.sparrow.rpc.socket.msg.RpcMsgType;
import java.io.Serializable;

public class RpcRequest implements RpcCodecMsg, Serializable {
    private static final long serialVersionUID = 1L;

    private long uuid;
    private String methodKey;
    private Object[] args;

    public void setUuid(long uuid) {
        this.uuid = uuid;
    }

    public long getUuid() {
        return uuid;
    }

    public String getMethodKey() {
        return methodKey;
    }

    public void setMethodKey(String methodKey) {
        this.methodKey = methodKey;
    }

    public void setArgs(Object[] args) {
        this.args = args;
    }

    public Object[] getArgs() {
        return args;
    }

    @Override
    public int getType() {
        return RpcMsgType.RPC_REQ.getTypeId();
    }
}
